<div id="content">
    <div class="reg_form">
        <div class="form_title">Update</div>
        <?php echo form_open("thanhvien/home/updateProfile/".$query['id']); ?>
        <p>
            <label for="display_name">Tên hiển thị:</label>
            <input type="text" id="display_name" name="display_name" value="<?php echo $query['tenhienthi']; ?>" />
            <?php echo form_error('display_name'); ?>
        </p>
        <p>
            <label for="phone_number">Số điện thoại:</label>
            <input type="text" id="phone_number" name="phone_number" value="<?php echo $query['sodienthoai']; ?>" />
            <?php echo form_error('phone_number'); ?>
        </p>
        <p>
            <label for="sexual">Giới tính:</label>
            <?php
            $opt_trinhdo = array(
                '0' => 'Nam',
                '1' => 'Nữ',
                '2' => 'Không xác định',
            );

            echo form_dropdown('gioitinh', $opt_trinhdo, $query['gioitinh']);
            ?>
        </p>
        <p>
            <label for="address">Địa chỉ:</label>
            <?php
            $address = array(
                'name' => 'address',
                'id' => 'address',
                'value' => $query['diachi'],
                'rows' => '5',
                'cols' => '10',
                'style' => 'width:50%',
            );

            echo form_textarea($address);
            ?>
            <?php echo form_error('address'); ?>
        </p>
        <p>
            <input type="submit" class="greenButton" value="Submit" />
        </p>
        <?php echo form_close(); ?>
    </div><!--<div class="reg_form">-->
</div><!--<div id="content">-->